<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="X-UA-Compatible" content="edge">
    <meta http-equiv="expires" content="0">
    <meta name="format-detection" content="telephone=yes,email=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <link href="URL" rel="dns-prefetch">
    <link rel="stylesheet" rev="stylesheet" href="static/loadingcircle.css" type="text/css" />
    <title>慧林淘友app下载</title>
    <link rel="stylesheet" href="static/index.css">
</head>

<body>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        .test {
            height: 600px;
            max-width: 600px;
            font-size: 40px;
        }
    </style>

    <script type="text/javascript">
        function is_weixin() {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                return true;
            } else {
                return false;
            }
        }
        var isWeixin = is_weixin();
        var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
        function loadHtml() {
            var div = document.createElement('div');
            div.id = 'weixin-tip';
            div.innerHTML = '<p><img src="static/live_weixin.png" alt="微信打开"/></p>';
            document.body.appendChild(div);
        }

        function loadStyleText(cssText) {
            var style = document.createElement('style');
            style.rel = 'stylesheet';
            style.type = 'text/css';
            try {
                style.appendChild(document.createTextNode(cssText));
            } catch (e) {
                style.styleSheet.cssText = cssText; //ie9以下
            }
            var head = document.getElementsByTagName("head")[0]; //head标签之间加上style样式
            head.appendChild(style);
        }
        var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
        if (isWeixin) {
            loadHtml();
            loadStyleText(cssText);
        }
    </script>
    <span class="pattern left">
        <img src="static/left.png">
    </span>
    <span class="pattern right">
        <img src="static/right.png">
    </span>
    <div class="wechat_tip_content"></div>
    <div class="out-container">
        <div class="main">
            <div class="header">
                <div class="table-container">
                    <div class="cell-container">
                        <div class="app-brief">
                            <div class="icon-container wrapper">
                                <i class="icon-icon_path bg-path"></i>
                                <span class="icon">
                                    <img src="static/logo.jpg" itemprop="image" id="dImg">
                                </span>
                                <span class="qrcode" id="qrcodeBox">
                                    <!-- qrcode info-->
                                    <img src="static/qrcodeimg.png">

                                </span>
                            </div>
                            <p class="release-type wrapper"></p>
                            <div class="hlong">
                                <!-- <img src="static/applelogo.png" width=24px height=24px> -->
                                <h1 style="color:black;">慧林淘友</h1>
                                <br><a href="http://live.lyhuilin.com/"
                                    style="font-size: 22pt; color:#000000; text-decoration:none;">点击进入网页（直播）版</a>
                            </div>
                            <!--
              <p class="scan-tips">扫描二维码下载
              <br>或用手机浏览器输入这个网址: http://live.lyhuilin.com/app/
                <span class="text-black"></span>
              </p>
-->
                            <div class="release-info">
                                <p>
                                    <span id="softwareVersion"></span>
                                </p> <!-- <p>更新于: 2019年02月09日10:26:15 -->
                                <script type="text/javascript">
                                    var myDate = new Date()
                                    myDate.setDate(myDate.getDate() - 1)
                                    document.write('更新于:' + myDate.toLocaleDateString())
                                </script>
                                <span id="datePublished"></span>
                                </p>
                            </div>
                            <div class="platform-matching-tips">
                                <!-- 单个设备提示 -->
                            </div>
                            <div id="actions" class="actions type-ios">
                                <button onclick="javascript:downloadMethod();" id="btn_download">下载安装</button>
                                <a href="javascript:void(0)" id="andDown"></a>
                            </div>

                        </div>

                        <div id="install">
                            <h2 style="color:red;">海量精品优惠，随时购物省钱</h2>
                            <!-- <h4 style="color:red;">每日10000+精致好货，人工臻选，低价抢购</h4> -->
                            <!-- <h4 style="color:red;">独家活动发放海量福利，一键领券下单立享优惠</h4>
                            <h4 style="color:red;">更多折扣播报、精品大牌，让你随时随地省钱省心；</h4> -->
                            <li><img src="static/install_01.jpg" width="100%"></li>
                            <!-- <h4>每日更新海量天猫淘宝大额优惠券，领券购物低至1折，让你花少钱买到心仪好物</h4> -->
                            <h2 style="color:red;">严选品质好物</h2>
                            <li><img src="static/install_02.jpg" width="100%"></li>
                            <!-- <h4 style="color:red;">百人品控团队人工严选优质商家和好价商品，<br>力求为您提供高品质、高性价比的前沿好物</h4> -->
                            <h2 style="color:red;">超多特色栏目</h2>
                            <li><img src="static/install_03.jpg" width="100%"></li>
                            <!-- <h4 style="color:red;">淘抢购聚划算精品折上折、疯抢排行、<br> 每日半价、咚咚抢…超多惊喜折扣等你体验</h4> -->
                        </div>

                    </div>
                </div>
            </div>
            <!-- 多平台信息 -->
            <div class="per-type-info section">
                <!-- iOS -->
                <div class="type" data-app-type="ios">
                    <div class="info">
                        <p class="type-icon">
                            <i class="icon-ios"></i>
                        </p>
                        <p class="version" id="iosVersion">
                            <!-- ios 数据展示 -->
                        </p>
                    </div>
                </div>

                <!-- Android -->
                <div class="type" data-app-type="android">
                    <div class="info">
                        <p class="type-icon">
                            <i class="icon-android"></i>
                        </p>
                        <p class="version" id="androidVersion">
                            <!-- android 数据展示 -->
                        </p>
                    </div>
                </div>
            </div>
            <!-- 单个客户端展示 -->
            <!-- <div class="master-section section">
        <h2 class="title">更新日志</h2>
        <pre></pre>
      </div> -->
        </div>
    </div>

</body>
<!-- <script src="js/vconsole.min.js"></script> -->
<script src="static/zepto.min.js"></script>
<script src="static/qrcode.min.js"></script>
<script src="static/index.js"></script>

<script>
    function downloadMethod() {
        window.location.href = "http://live.lyhuilin.com/app/app-release.apk";
        //window.location.href="itms-services://?action=download-manifest&url=";
        var downloadBtn = document.getElementById("btn_download");
        var loadingDiv = document.createElement("div");
        loadingDiv.id = "loader";
        downloadBtn.parentNode.appendChild(loadingDiv);
        downloadBtn.parentNode.removeChild(downloadBtn);
        countTimer(loadingDiv);
    };

    var time = 3;
    function countTimer(loaderDiv) {
        if (time >= 0) {
            time = time - 1;
            setTimeout(function () {
                countTimer(loaderDiv);
            }, 1000);
        } else {
            var alertLabel = document.createElement("h1");
            alertLabel.setAttribute("style", "color:#BA55D3");
            alertLabel.innerHTML = "正在安装，请按home键在桌面查看<br>";
            loaderDiv.parentNode.appendChild(alertLabel);
            loaderDiv.parentNode.removeChild(loaderDiv);
        }
    }
    /**************************************时间格式化处理************************************/
    // function dateFtt(fmt, date) { //author: meizz   
    //     var o = {
    //         "M+": date.getMonth() + 1,                 //月份   
    //         "d+": date.getDate(),                    //日   
    //         "h+": date.getHours(),                   //小时   
    //         "m+": date.getMinutes(),                 //分   
    //         "s+": date.getSeconds(),                 //秒   
    //         "q+": Math.floor((date.getMonth() + 3) / 3), //季度   
    //         "S": date.getMilliseconds()             //毫秒   
    //     };
    //     if (/(y+)/.test(fmt))
    //         fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
    //     for (var k in o)
    //         if (new RegExp("(" + k + ")").test(fmt))
    //             fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
    //     return fmt;
    // }
</script>



</html>